﻿<%@ Page Language="C#" MasterPageFile="/templates/masterpages/default.master" AutoEventWireup="false" CodeBehind="NewsList.aspx.cs" Inherits="EPiServer.Municipality.Templates.Pages.NewsList" %>
<asp:Content runat="server" ContentPlaceHolderID="ComplementaryContent">
    <EPiServer:PagedList runat="server" PageLinkProperty="NewsContainer" ID="NewsPagePagedList" AllowPaging="true" SortBy="PageStartPublish" SortDirection="Descending" EnableViewState="false">
        <HeaderTemplate>
            <ul class="news">
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <h2><EPiServer:Property runat="server" PropertyName="PageLink" EnableViewState="false" /></h2>
                <span class="date"><EPiServer:PropertyDate runat="server" DateFormat="D" PropertyName="PageStartPublish" EnableViewState="false" /></span>
                <EPiServer:Property runat="server" propertyname="MainImage" ImageWidth="120" AspectRatio="1" enableviewstate="false" displaymissingmessage="false" />
                <EPiServer:Property PropertyName="ListIntro" runat="server" EnableViewState="false" DisplayMissingMessage="false" />
            </li> 
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </EPiServer:PagedList>
</asp:Content>